package de.metalcon.gwt.server.db;

import org.neo4j.graphdb.DynamicRelationshipType;
import org.neo4j.graphdb.GraphDatabaseService;
import org.neo4j.graphdb.RelationshipType;

public enum Relations implements RelationshipType {
	Type("Type"), FriendOf("FriendOf");

	private final String name;

	private Relations(String name) {
		this.name = name;
	}

	public String toString() {
		return name;
	}

	public DynamicRelationshipType getRelType(GraphDatabaseService db) {
		return DynamicRelationshipType.withName(name);
	}
}
